Skip to content

fix: export prop types from manifest/jsdoc#52

Merged
jpoehnelt merged 3 commits intomainfrom
fix/export-types
May 7, 2025
Merged

fix: export prop types from manifest/jsdoc#52
jpoehnelt merged 3 commits intomainfrom
fix/export-types

Conversation

@jpoehnelt
Copy link
Member

@jpoehnelt jpoehnelt commented May 7, 2025

Export props and update README for instructions on JSX.

closes #51

@jpoehnelt jpoehnelt requested a review from Copilot May 7, 2025 23:05
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR refactors the export of prop types by removing the legacy types file and introducing a new props file generated from the custom elements manifest. Key changes include:

  • Updating src/index.ts and src/drive-picker/index.ts to export new prop type definitions.
  • Removing src/drive-picker/types.ts and generating prop types in src/drive-picker/props.ts via a new build:props script.
  • Adjusting custom-elements.json and README.md to reflect the new prop types and provide updated React/JSX usage instructions.

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/index.ts Updated export statements to include new prop interface types from "./drive-picker".
src/drive-picker/types.ts Removed as prop types have been moved to the new props.ts file.
src/drive-picker/props.ts New file that defines prop interfaces for DrivePicker components.
src/drive-picker/index.ts Re-exports new prop types from props.ts.
scripts/props.ts Added script to auto-generate the prop types from the custom elements manifest.
package.json Added the build:props command and its configuration.
custom-elements.json Updated to map prop type declarations to the new props file.
README.md Added documentation for React/JSX usage with updated prop types.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@jpoehnelt jpoehnelt merged commit ec9f8ea into main May 7, 2025
14 of 15 checks passed
@jpoehnelt jpoehnelt deleted the fix/export-types branch May 7, 2025 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TS2339: Property drive-picker does not exist on type JSX.IntrinsicElements

2 participants